@import url('https://fonts.googleapis.com/css2?family=Italiana&family=Montserrat:wght@300;400;500;600;700&family=Dancing+Script:wght@400;500;700&display=swap');

:root {
    --primary-color: #E9C46A;
    --secondary-color: #5C2334;
    --dark-color: #191716;
    --white-color: #ffffff;
    --beige-color: #F1E0C5;
    --gold-gradient: linear-gradient(to bottom, #E9C46A, #D4AF37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: white; 
}

.navbar {
    background-color: var(--secondary-color); /* Tono oscuro */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 50px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.navbar-logo {
    width: 60px;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.navbar-logo:hover {
    transform: scale(1.1); /* Efecto al pasar el mouse */
}

.navbar-title {
    font-family: 'Italiana', serif;
    font-size: 24px;
    font-weight: bold;
    color: #e6d5b8;
    letter-spacing: 2px;
    transition: color 0.3s ease-in-out;
}

.navbar-title:hover {
    color: #f1e4c3; /* Un tono más claro al hacer hover */
}

.navbar-subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 20px;
    color: #e6d5b8;
    font-weight: 500;
    transition: text-shadow 0.3s ease-in-out;
}

.navbar-subtitle:hover {
    text-shadow: 0px 0px 8px rgba(230, 213, 184, 0.7);
}

/* Línea decorativa más sutil */
.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(230, 213, 184, 0.5), transparent);
    filter: blur(1px);
    opacity: 0.7;
}

.main-nav {
    padding: -0.75rem 0;
}

.nav-menu {
    text-align: center;
    padding: 15px;
    background-color: #000000d8;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    margin: 0 10%;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav-menu a:hover {
    background: var(--secondary-color);
}


.hero {
    width: 100%;
    background-color: var(--dark-color);
}

.hero-container {
    max-width: 100%;
    margin: 0 auto;
}

.hero-image {
    width: 100%;
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.products {
    padding: 4rem 2rem;
    background-color: var(--white-color);
}

.products-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}



.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
}

.section-title span {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.product-card {
    background-color: var(--secondary-color);
    border-radius: 24px;
    color: var(--beige-color); 
    text-align: center;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15); 
    margin-bottom: 70px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1 1 calc(25% - 20px); 
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    align-items: center;
    height: auto;
    min-height: 35vh;
}

.price-button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #C1A15E;
    color: white;
    font-weight: bold;
    border-radius: 20px;
    margin-top: auto; 
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.product-card img {
    max-width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
    margin-bottom: 10px;
    border-radius: 16px;
    max-width: 100%;
    transition: transform 0.3s ease-in-out;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    text-align: left; 
}

.card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    text-align: left; 
    font-weight: bold;
}

.card-description {
    text-align: left;
    flex-grow: 1; 
}

.card-price {
    align-self: flex-start;
    margin-top: auto;
}


.product-card img:hover {
    transform: scale(1.05);
    margin-bottom: 10px;
}

.buy-button {
    background-color: #b49d60;
    color: white; 
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 16px;
    padding: 10px 16px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0px 5px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
    width: 60%; 
    text-align: center;
    margin-top: 20px; 
}

.buy-button:hover {
    background-color: #AF9B90; 
    transform: scale(1.05);
}


.buy-button {
    margin-top: 20px; 
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}



.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    background: none;
    position: fixed;
    bottom: 20px; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    margin-top: -90px; 
    position: relative; 
}

.pagination a {
    text-decoration: none; 
}

.pagination button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; 
    height: 40px;
    border: 2px solid #191716;
    border-radius: 8px;
    font-weight: bold;
    color: #191716;
    font-size: 18px;
    background-color: transparent;
    cursor: pointer;
}

.pagination button:hover,
.pagination button:focus {
    background: #191716;
    color: white;
    outline: none;
}

.pagination button:active {
    background: #191716; 
}



.footer {
    background-color: #1E1E1E;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    color: white;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo img {
    width: 60px;
    height: auto;
}

.footer-links {
    display: flex;
    gap: 15px;
    margin-top: 50px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin-top: 65px;
}

.footer-links a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 1020px) {
    .products-container {
        grid-template-columns: repeat(2, 1fr); /* 2 tarjetas por fila */
        gap: 8px;
    }

    .product-card {
        height: 72vh;
    }

    .product-card img {
        height: 38vh;
        width: 100%;
    }

    .buy-button {
        width: 85%;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    .navbar {
        padding: 14px;
    }

    .navbar-title {
        font-size: 18px;
    }

    .navbar-subtitle {
        font-size: 14px;
    }
}


@media screen and (max-width: 768px), (max-width: 720px)  {
    .products-container {
        grid-template-columns: 1fr;
    }

    .buy-button {
        width: 90%;
        margin: 0 auto;
        margin-top: 3vh;
    }

    .product-card {
        height: 55vh;
    }

    .product-card img {
        height: 35vh;
    }
}


@media screen and (max-width: 480px) {
    .navbar {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    .products-container {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .buy-button{
        width: 175px;
        margin-left: 22px;
        margin-top: 3vh;
    }

    .product-card{
        height: 66vh;
    }

    .product-card img{
        height: 37vh;
        width: 100%;
    }

    .navbar-logo {
        width: 40px;
    }
    .navbar-title {
        font-size: 16px;
    }
    .navbar-subtitle {
        font-size: 12px;
    }
}